package com.pivotal.cloud.crypto.encrypt;

/**
 * @className: com.pivotal.cloud.security.crypto.encrypt.RsaAlgorithm
 * @projectName: PivotalCloud项目
 * @module: PivotalCloud项目-RsaAlgorithm类，主要位于Security安全模块-Rsa加密算法模块
 * @content: RsaAlgorithm-Rsa加密算法
 * @author: Powered by Marklin
 * @datetime: 2025-06-25 23:14
 * @version: 1.0.0
 * @copyright: Copyright © 2018-2025 PivotalCloud Systems Incorporated. All rights
 * reserved.
 */
public enum RsaAlgorithm {

	DEFAULT("RSA", 117), OAEP("RSA/ECB/OAEPPadding", 86);

	private final String name;

	private final int maxLength;

	RsaAlgorithm(String name, int maxLength) {
		this.name = name;
		this.maxLength = maxLength;
	}

	public String getJceName() {
		return this.name;
	}

	public int getMaxLength() {
		return this.maxLength;
	}

}
